.rect{
  position: absolute;
  box-shadow: 0 0 0 1999px rgba(0, 0, 0, .4);
  left: -9999px;
  top: 0;
  width: 0;
  height: 0;
  border: 1px solid #fa9120;
  cursor: move;
}
.rect>span{
  position: absolute;
  width: 6px;
  height: 6px;
}
.rect .left-top{
  left: 0;
  top: 0;
  cursor: nwse-resize;
}
.rect .middle-top{
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  cursor: n-resize;
}
.rect .right-top{
  right: 0;
  top: 0;
  cursor: nesw-resize;
}
.rect .right-middle{
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  cursor: e-resize;
}
.rect .right-bottom{
  right: 0;
  bottom: 0;
  cursor: nwse-resize;
}
.rect .middle-bottom{
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  cursor: s-resize;
}
.rect .left-bottom{
  left: 0;
  bottom: 0;
  cursor: nesw-resize;
}
.rect .left-middle{
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  cursor: w-resize;
}
